package com.itheima.dao.impl;

import com.itheima.dao.TeacherDao;

public class TeacherDaoImpl implements TeacherDao {
//    spring默认会使用无参构造器进行实例化
    public TeacherDaoImpl() {
        System.out.println("TeacherDaoImpl 实例化");
    }

    public TeacherDaoImpl(int i) {
        System.out.println("UserDaoImpl2 实例化 i=" + i);
    }
    @Override
    public void save() {
        System.out.println("TeacherDaoImpl save");
    }
}
